<?php
namespace app\lib\exception;

/** 
* Document
*/
class Base extends \Exception {

    // http状态码
    public $httpCode = 404;
    // 错误提示
    public $msg  = '';
    // 系统错误码
    public $errorCode = 1000;

    public function __construct($msg=null,$errorCode=null){
        is_null($errorCode) ? null: $this->errorCode = $errorCode;
        is_null($msg) ? null      : $this->msg       = $msg;
    }
}